package calculadoraplugin.actions;

import java.awt.ComponentOrientation;

import javax.swing.JTextArea;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.ui.forms.widgets.FormToolkit;

public class asdasdasd {
	/**
	 * Launch the application.
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			asdasdasd window = new asdasdasd();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	JTextArea display = new JTextArea(1, 20);

	private final FormToolkit formToolkit = new FormToolkit(
			Display.getDefault());
	protected Shell shell;
	/**
	 * @wbp.nonvisual location=43,81
	 */
	private JTextArea textArea;
	/**
	 * @wbp.nonvisual location=83,131
	 */
	private final JTextArea textArea_1 = new JTextArea();

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		textArea = new JTextArea();
		textArea.setColumns(20);
		textArea.setRows(1);
		shell = new Shell();
		shell.setSize(450, 300);
		shell.setText("SWT Application");

		TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
		tabFolder.setBounds(10, 39, 343, 165);
		formToolkit.adapt(tabFolder);
		formToolkit.paintBordersFor(tabFolder);

		TabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem.setText("New Item");
		// display.setFont(font);
		display.setEditable(false);
		display.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		createContents();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}
}
